import jieba
import logging

if __name__ == '__main__':
    # 设置日志显示的等级，Info 及以上级别
    # jieba 默认的日志级别是 DEBUG
    jieba.setLogLevel(log_level=logging.INFO)
    txt = "我在陕西交通职业技术学院软件技术专业学习"

    # sentence: 要分割的字符串
    seg_genertor = jieba.cut(sentence=txt)

    print(type(seg_genertor))

    seg_list = jieba.lcut(sentence=txt)
    print(type(seg_list))